﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SmartDesktop
{
    public partial class PatientValidation : UserControl
    {
        public PatientValidation()
        {
            InitializeComponent();
            this.Name = "New Patient Search";
        }
        private void BindDay()
        {
            cboDay.Items.Add("--Day--");
            cboDay2.Items.Add("--Day--");
            for (int count = 1; count <= 31; count++)
            {               
                if (count < 10)
                {
                    cboDay.Items.Add("0" + Convert.ToString(count));
                    cboDay2.Items.Add("0" + Convert.ToString(count));
                }
                else
                {
                    cboDay.Items.Add(Convert.ToString(count));
                    cboDay2.Items.Add(Convert.ToString(count));
                }
            }
            cboDay.SelectedIndex = 0;
            cboDay2.SelectedIndex = 0;
        }
        private void BindYear()
        {
            cboYear.Items.Add("--Year--");
            cboYear2.Items.Add("--Year--");
            for (int count = System.DateTime.Now.Year; count > 1900; count--)
            {
                cboYear.Items.Add(Convert.ToString(count));
                cboYear2.Items.Add(Convert.ToString(count));
            }
            cboYear.SelectedIndex = 0;
            cboYear2.SelectedIndex = 0;
        }

        private void rdMemberId_Click(object sender, EventArgs e)
        {
            rdMemberId.Checked = true; 
            rdMemberName.Checked = false; 
            rdPriorAuth.Checked = false;
        }

        private void rdMemberName_Click(object sender, EventArgs e)
        {
            rdMemberId.Checked = false; 
            rdMemberName.Checked = true; 
            rdPriorAuth.Checked = false;
        }

        private void rdPriorAuth_Click(object sender, EventArgs e)
        {
            rdMemberId.Checked = false;
            rdMemberName.Checked = false; 
            rdPriorAuth.Checked = true;
        }
    }
}
